﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using RADB;
using System.Web.Script.Serialization;

namespace WaiterService
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            IDataTransfer DTO = IDataTransferFactory.getDataTransferObject("http://nhatnpq60143:26690/DataTransferObj.soap");
            //IDataTransfer DTO = IDataTransferFactory.getDataTransferObject("http://192.168.1.28:26690/DataTransferObj.soap");
            Application["DTO"] = DTO;

            JavaScriptSerializer serializer = new JavaScriptSerializer();
            serializer.RegisterConverters(new JavaScriptConverter[] { new DataTableConverter() });
            Application["serializer"] = serializer;
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}